﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000360 RID: 864
	public class TTriggerAction : TParseTreeNode
	{
		// Token: 0x1700079C RID: 1948
		// (get) Token: 0x060023D5 RID: 9173 RVA: 0x00337DB9 File Offset: 0x00335FB9
		public virtual TCompoundSqlNode CompoundSqlNode
		{
			get
			{
				return this.compoundSqlNode;
			}
		}

		// Token: 0x1700079D RID: 1949
		// (get) Token: 0x060023D6 RID: 9174 RVA: 0x00337DC1 File Offset: 0x00335FC1
		public virtual TStatementSqlNode StmtNode
		{
			get
			{
				return this.stmtNode;
			}
		}

		// Token: 0x1700079E RID: 1950
		// (get) Token: 0x060023D7 RID: 9175 RVA: 0x00337DC9 File Offset: 0x00335FC9
		// (set) Token: 0x060023D8 RID: 9176 RVA: 0x00337DD1 File Offset: 0x00335FD1
		public virtual TExpression WhenExpr
		{
			get
			{
				return this.whenExpr;
			}
			set
			{
				this.whenExpr = value;
			}
		}

		// Token: 0x060023D9 RID: 9177 RVA: 0x00337DDC File Offset: 0x00335FDC
		public override void init(object arg1, object arg2)
		{
			if (arg1 != null)
			{
				this.whenExpr = (TExpression)((TDummy)arg1).node1;
			}
			if (arg2 is TStatementSqlNode)
			{
				this.stmtNode = (TStatementSqlNode)arg2;
				return;
			}
			if (arg2 is TCompoundSqlNode)
			{
				this.compoundSqlNode = (TCompoundSqlNode)arg2;
			}
		}

		// Token: 0x04001BE7 RID: 7143
		private TExpression whenExpr;

		// Token: 0x04001BE8 RID: 7144
		private TStatementSqlNode stmtNode;

		// Token: 0x04001BE9 RID: 7145
		private TCompoundSqlNode compoundSqlNode;
	}
}
